package org.obm.bigg.mgmt;

import java.util.HashMap;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;

public class BiggAdm {

	public List<BigBox> listMailboxes() {
		LinkedList<BigBox> ret = new LinkedList<BigBox>();

		return ret;
	}

	public ErrorCode createMailbox(BigBox box) {
		return ErrorCode.OK;
	}

	public ErrorCode deleteMailbox(BigBox box) {
		return ErrorCode.OK;
	}

	public ErrorCode setAcl(Acl acl) {
		return ErrorCode.OK;
	}

	public Map<String, Acl> getAcl(BigBox box) {
		HashMap<String, Acl> ret = new HashMap<String, Acl>();
		
		Acl a = new Acl("john.doe@minig.org", box, BoxRights.READ,
				BoxRights.PERMISSIONS, BoxRights.WRITE, BoxRights.FOLDERS);
		ret.put(a.getWho(), a);
		return ret;
	}
}
